﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Urb.Weather.Engine
{
    internal class WorkItemRegistrationTokenGenerator
    {
        private static uint lastNumber = uint.MinValue;

        private static object generatorLock = new object();

        public WorkItemRegistrationToken Next()
        {
            lock (generatorLock)
            {
                return new WorkItemRegistrationToken(lastNumber++);
            }
        }
    }
}
